import Vue from 'vue'
import App from './App.vue'
// 引入路由对象
import router from "@/router"
import store from "@/store"

import "@/mock/mockServer"
Vue.config.productionTip = false

//引入全局注册组件
import "@/main/components";

//引入eventBus事件总线的设置
import "@/main/eventBus";

// 引入element组件库
import "@/main/element"

import "@/main/lazyLoad"

new Vue({
  render: h => h(App),
  // 将router对象放在实例上,则所有的组件实例上都有$route和$router
  router,
  store,
  beforeCreate() {
    Vue.prototype.$bus = this
  }
}).$mount('#app')



